function login(){
    $.ajax({
        type: 'POST',
        url: BASE_URL()+"user/administrator",
        data: $("#adminlogin").serialize(),
        cache: false,
        dataType: 'json',
        success: function(resultdata) {
            readjsonresult(resultdata);
            if(resultdata.success){
                redirect(BASE_URL()+"admin")
            }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            
        }
    });
}
function addupdatecontenttype(){
    $.ajax({
        type: 'POST',
        url: BASE_URL()+"admin/contenttype",
        data: $("#contenttype").serialize(),
        cache: false,
        dataType: 'json',
        success: function(resultdata) {
            readjsonresult(resultdata);
            if(resultdata.success){
                
            }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            
        }
    });
}